package com.bw.service;

import org.apache.rocketmq.spring.annotation.RocketMQMessageListener;
import org.apache.rocketmq.spring.core.RocketMQListener;
import org.springframework.stereotype.Component;

/**
 * @Author: Yanyanyu
 * @Date: 2024/3/11 8:55
 */
@Component
@RocketMQMessageListener(consumerGroup = "group",topic = "demo1")
public class ConsumerService implements RocketMQListener {
    @Override
    public void onMessage(Object o) {
        System.out.println(o);
    }
}
